/*
* Conditions Of Use
*
* This software was developed by employees of the Sigmatrix(Beijing) Corporation.
* This software is provided by sigmatrix as a service and is expressly
* provided "AS IS."  Sigmatrix MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
* AND DATA ACCURACY.  Sigmatrix does not warrant or make any representations
* regarding the use of the software or the results thereof, including but
* not limited to the correctness, accuracy, reliability or usefulness of
* the software.
*
* Permission to use this software is contingent upon your acceptance
* of the terms of this agreement.
*
*/
package com.sigmatrix.h5.service;

import java.util.List;
import java.util.Map;

import com.microsoft.windowsazure.exception.ServiceException;
import com.sigmatrix.h5.entity.DisRebate;
import com.sigmatrix.sc.jdbc.common.service.Service;

/**
 *@ClassName: DisRebateService
 *@Description: 
 *@author MH
 *@date 2017年8月16日 下午4:06:23
 */
public interface DisRebateService extends Service<DisRebate,Integer>{
	
	/**
	 * 通过返利策略和反填经销商级别查询
	 *@Title: findByStrategyIdAndDealerLevel
	 *@Description: 
	 *@return List<DisRebate>
	 *@author MH
	 *@date 2017年8月16日 下午4:14:03
	 *@param strategyId
	 *@param dealerLevel
	 *@return
	 *@throws ServiceException
	 */
	List<DisRebate> findByStrategyIdAndDealerLevel(Integer strategyId,Short dealerLevel);
	
	/**
	 * 
	 *@Title: judgeRebateAmountOfEachLevel
	 *@Description: 查询各级返利金额 
	 *@return Map<String,DisRebate> key 为返利主体+返利级别
	 *@author MH
	 *@date 2017年12月6日 下午4:53:48
	 *@param strategyId
	 *@return
	 */
	Map<String,DisRebate> judgeRebateAmountOfEachLevel(Integer strategyId,Short scanType);
}
